package com.grapecc.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 卖糖的兜兜
 * @version 1.0.0
 * @ClassName CommonResult.java
 * @Description TODO
 * @createTime 2022年02月02日 14:56:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    public CommonResult(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;
    private  T     data;

}
